package cn.hwh.springframework.beans.factory.config;

import cn.hwh.springframework.beans.BeansException;

/**
 * @author wenhao hu
 * @title: BeanProcessor
 * @projectName mini-spring
 * @description: TODO
 * @date 2022/1/2620:57
 */
public interface BeanPostProcessor {
     /**
      * @description: 在Bean对象执行初始化方法之前执行此方法
      * @author wenhao hu
      * @date 2022/1/26 20:59
     */
    Object postProcessBeforeInitialization(Object bean,String beanName) throws BeansException;

     /**
      * @description: 在Bean对象初始化方法之后执行此方法
      * @author wenhao hu
      * @date 2022/1/26 21:00
     */
    Object postProcessAfterInitialization(Object bean,String beanName) throws BeansException;

}
